package com.code.commons.constants;

import com.google.common.collect.Maps;

import java.util.TreeMap;

/**
 * 服务常量
 *
 * @author tangyifei
 * @since 2019-5-23 09:27:57 PM
 */
public interface ServerConstants {

    /**
     * 用户模块uri中的相关常量
     */
    String USER = "WHITECOIN-DAPP-USER-SERVICE" + "/whitecoin-dapp-user";

    /**
     * AZ计划模块uri中的相关常量
     */
    String AZPLAN = "WHITECOIN-DAPP-AZPLAN-SERVICE" + "/whitecoin-dapp-AZPlan";

    /**
     * 事物管理器
     */
    String TRANSACTION_MANAGER = "testTransactionManager";

    /**
     * os
     */
    String WINDOWS = "Windows";

    String LINUX = "Linux";

    /**
     * 币种类型
     */
    String XWC = "XWC";

    String BTC = "BTC";

    String USDT = "USDT";

    String USD = "USD";

    /**
     * 流水类型
     */
    int RECHARGE = 1;

    int WITHDRAW = 2;

    /**
     * 确认状态
     */
    int CONFIRMED = 1;

    int NO_CONFIRM = 0;

    /**
     * 公共常量，代表是，确定，允许等标识
     */
    int COMMON_YES = 1;

    /**
     * 公共常量，代表否，否定，不允许等标识
     */
    int COMMON_NO = 0;

    /**
     * 入金通道1
     */
    int ONE_CHANNEL = 1;

    String ONE_CHANNEL_USDT_LOWEST_AMOUNT = "1000";

    String ONE_CHANNEL_USD_AMOUNT = "2000";

    /**
     * 入金通道2
     */
    int TWO_CHANNEL = 2;

    String TWO_CHANNEL_USDT_LOWEST_AMOUNT = "3000";

    String TWO_CHANNEL_USD_AMOUNT = "7200";

    /**
     * 入金通道3
     */
    int THREE_CHANNEL = 3;

    String THREE_CHANNEL_USDT_LOWEST_AMOUNT = "5000";

    String THREE_CHANNEL_USD_AMOUNT = "15000";

    /**
     * 1已充值（比如得到2000usd）
     */
    int RECHARGED = 1;

    /**
     * 2已释放完(比如已释放完第一轮入金获得的2000usd)
     */
    int RELEANSED = 2;

    /**
     * 3进入第二轮推荐
     */
    int SECOND_RECOMMEND = 3;

    /**
     * 兑换币种
     */
    String BTC_USDT = "BTC_USDT";
    String XWC_USDT = "XWC_USDT";

    /**
     * BTC和XWC的金额保留精度
     */
    int XWC_BTC_SCALE = 8;

    /**
     * USD和USDT的金额保留精度
     */
    int USDT_USD_SCALE = 2;

    /**
     * 中文
     */
    String CN = "zh_CN";

    /**
     * 英文
     */
    String ES = "en_US";

    /**
     * 韩文
     */
    String KR = "ko_KR";

    /**
     * 日文
     */
    String JP = "ja_JP";

    /**
     * 中文繁体
     */
    String HK = "zh_HK";

    /**
     * 俄文
     */
    String RA = "ra_RA";

    /**
     * 复投
     */
    int DOUBLE_THROW = 1;

    /**
     * profile
     */
    String DEV = "dev";

    String QA = "qa";

    String PROD = "prod";

    String RECOMMENG_TREE = "recommendTree";

    TreeMap<String, Object> treeMap = Maps.newTreeMap();

    /**
     * vip级别
     */
    String ZERO_LEVEL = "V0";
    String ONE_LEVEL = "V1";
    String TWO_LEVEL = "V2";
    String THREE_LEVEL = "V3";

    /**
     * 静态收益比例
     */
    String STATIC_INCOME_PERCENT = "0.0075";

    /**
     * 系统维护
     */
    String SYSTEM_PROTECT = "SYSTEM_PROTECT";

    /**
     * 提币操作码
     */
    String WITHDRAW_CODE = "WITHDRAW";

    /**
     * 站内转账操作码
     */
    String INSITE_TRANSFER_IN_CODE = "INSITE_TRANSFER_IN";

}
